[#ftl]
[#include "commonDef.ftl" /]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
<meta name="renderer" content="webkit" />
<title>${data_main.moduleKeyName}主页</title>
<link rel="stylesheet" type="text/css" href="${level_own}plugins/bootstrap/3.3.7/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="${level_own}plugins/jquery-easyui/1.8.6/themes/gray/easyui.css" />
<link rel="stylesheet" type="text/css" href="${level_own}plugins/jquery-easyui/1.8.6/themes/icon.css" />
<link rel="stylesheet" href="${level_own}plugins/font-awesome/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="${level_own}css/zbootstrap.css" />
<link rel="stylesheet" type="text/css" href="${level_own}css/zeasyui.css" />
<link rel="stylesheet" type="text/css" href="${level_own}css/common.css" />

<script type="text/javascript" src="${level_own}plugins/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="${level_own}plugins/jquery-rstorage/1.3.2/jquery.rStorage.min.js"></script>
<script type="text/javascript" src="${level_own}plugins/jquery-easyui/1.8.6/jquery.easyui.min.js"></script>

<script type="text/javascript" src="${level_own}js/zGlobal.js"></script>
<script type="text/javascript" src="${level_own}js/zApi.js"></script>
<script type="text/javascript" src="${level_own}js/zUtil.js"></script>
<script type="text/javascript" src="${level_own}js/zAlert.js"></script>
<script type="text/javascript" src="${level_own}js/zDict.js"></script>
<script type="text/javascript" src="${level_own}js/zTable.js"></script>
<script type="text/javascript" src="${level_own}js/zDialog.js"></script>
<script type="text/javascript" src="${level_own}js/zForm.js"></script>
<script type="text/javascript" src="${name_js}"></script>[#-- 同目录直接name_js，不同目录pack_js;可以放到文件最后  --]

<![if IE]>

<![endif]>
</head>
<body onload="noright(document.body);">
[#-- 一些固定逻辑方法,该页面以查询方法f_query为主设计的; toggleFlag扩展了两个功能联动 --]
[#assign f_add="add" f_edit="edit" f_query="page" f_detail="detail" f_del="del" f_req="req" f_res="res"/]
[#assign qmdx=map_method[f_query]  toggleFlag=(data_main.fieldEx['toggleFlag']!'') 
 to = '' data_main2='' data_method2='' qmdx2=''/]
[#if other?? && toggleFlag?length>0]
[#assign to=other[toggleFlag]  data_main2=to.data_main  data_method2=to.data_method map_method2=to.map_method qmdx2 = map_method2[f_query] /]
[/#if]
<div id="p-all" class="easyui-layout" data-options="fit:true"> 
  <div data-options="region:'center',split:false,border:false,minWidth:500" style="overflow: hidden;[#if toggleFlag?length>0]width:50%;border-right:1px solid rgb(210, 208, 208);[/#if]"> 
       [#if toggleFlag?length>0]
       <div style="height: 36px;padding:5px 3px;position: absolute;z-index: 2;right: 2px;">
        <input id="table-toggle" class="easyui-switchbutton" style="" />
       </div>
       [/#if]
      <div id="${TableBarIdFunc(data_main,qmdx)}" style="padding:5px;height:auto">
        <div>
        [@ButtonHandler data_main data_method /]
        </div>
      </div>
      <table id="${TableIdFunc(data_main,qmdx)}"></table> 
  </div>
  [#if toggleFlag?length>0]
  <div data-options="region:'east',split:true,border:false,minWidth:500" style="overflow: hidden;width:50%;border-left:1px solid rgb(210, 208, 208);"> 
      <div id="${TableBarIdFunc(data_main2,qmdx2)}" style="padding:5px;height:auto">
        <div>
        [@ButtonHandler data_main2 data_method2 /]
        </div>
      </div>
      <table id="${TableIdFunc(data_main2,qmdx2)}"></table>
  </div> 
  [/#if]
</div>
[#-- 页面弹框元素--]
[#list data_method as mdx]
[#assign mtype = ((mdx.methodOprType!'') == 'getdetail')?then(f_res,f_req) /]
[#if mdx.needFlag == '1' && [f_detail,f_query,f_add,f_edit]?seq_contains(mdx.methodKey)]
[@DlgDivHandler data_main  mdx  mtype /]
[/#if]
[/#list]

[#if toggleFlag?length>0]
[#list data_method2 as mdx]
[#assign mtype = ((mdx.methodOprType!'') == 'getdetail')?then(f_res,f_req) /]
[#if mdx.needFlag == '1' && [f_detail,f_query,f_add,f_edit]?seq_contains(mdx.methodKey)]
[@DlgDivHandler data_main2  mdx  mtype /]
[/#if]
[/#list]
[/#if]

</body>
</html>